09. onCreate vs onStart

ANDK L4 22 OnCreate Vs OnSmart SC

Code in onCreate

Given what we just explored about lifecycle state, answer the following. Right now we initialize dessertsSold to 0 at declaration. Let's say we also set dessertsSold to 0 in onCreate. What, if anything, would change?

SOLUTION: The app would work the same